<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">


<title>Insert title here</title>
<script type="text/javascript">
    $(document).ready(function() {
    	
    	$.getJSON('/messages/amountOfUnreadMessages', function(data) {
  			if (data!=null && data>0) {
  			   		$("#myMessages").append("<b>(" + data + ")</b>");
  			}
    	});
    	
        //$("a, input:button, input:submit").button();
    })
</script>
</head>
<body>
	<div id="navigation" style="top:-93px;">
<ul>
<li style="left:10px;"><a href="/" title="Главная">Главная</a></li>
<li style="left:-15px;"><a href="/works" title="Поиск работ">Поиск работ</a></li>
<li style="left:-40px;"><a href="/calendar" title="Календарь">Календарь</a></li>
<li style="left:-65px;"><a id="myMessages" href="/messages" title="Сообщения">Сообщения</a></li> </div>
</ul>
<div id="mir"><li style="left:765px; top: -155px;  ">
<a href="<c:url value="/j_spring_security_logout" />"  style="" title="Выйти">Выйти</a></li>

</div>

</body>
</html>